home *** CD-ROM | disk | other *** search
/ SGI Hot Mix 14 / Hot Mix 14.iso / .all / bin / netscape / mailcap.hm14 (.txt) < prev    next >
Text File  |  1996-07-08  |  7KB  |  162 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Mailcap file for Netscape
  14. #
  15. # Users may override or extend this with a .mailcap file in
  16. # their own directory.  Netscape will search both mailcap
  17. # files looking for a match.
  18. #
  19. # imgview currently can view SGI, TIFF, JFIF/JPEG, and GIF formats.
  20. # Netscape has builtin viewing support for GIF and JFIF and if the
  21. # mailcap entries for these are commented out, it will display those
  22. # images as a new page when downloaded.  However, for consistency
  23. # the default is to use the external viewer.
  24. #
  25. # First a note about syntax:
  26. #    The first token in a configuration line represents a mime type.
  27. #    A mime type is of the form "SubGroup/Item" and either token
  28. #    can be replaced by the wildcard character "*"
  29.  
  30. #    the second token is the command that you would run
  31. #    when the specified mime type is encountered.  An example
  32. #    would be "xv %s" where %s will be replaced by a filename
  33.  
  34. #    remaining tokens represent name value pairs.
  35.  
  36. #    the "test=" pair invokes the test command
  37. #    specified and checks the UNIX shell return code to see if the
  38. #    test passed.  If the test passes the mime mapping is made, otherwise
  39. #    the mapping is not made.
  40.  
  41. #    the "stream-buffer-size=" pair tells the application
  42. #    to use a popen command to invoke the program specified and to
  43. #    pipe all data into the command.  Only programs that can handle
  44. #    piped input can use this method.  When this method is used
  45. #    a "%s" should not be included in the command.  You should
  46. #    make sure that the program you wish to use can accept piped
  47. #    data by trying something like this before using it:
  48. #       cat "YOUR_DATA_FILE_HERE" | COMMAND_TO_TEST
  49.  
  50. #    You may continue lines by using the backslash character "\"
  51.  
  52. image/x-sgi-image; imgview -nofork %s; compose=imgworks %s; \
  53.     description="SGI image"; \
  54.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  55. image/x-bitmap; bitmap %s; description="X11 bitmap"; \
  56.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  57. image/x-xpm1; olpixmap %s; description="OL pixmap"; \
  58.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  59. image/tiff; imgview -nofork %s; compose=imgworks %s; description="TIFF image"; \
  60.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  61. image/gif; imgview -nofork %s; compose=imgworks %s; description="GIF image"; \
  62.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  63. image/jpeg; imgview -nofork %s; compose=imgworks %s; description="JFIF image"; \
  64.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  65. image/jpg; imgview -nofork %s; compose=imgworks %s; description="JFIF image"; \
  66.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  67. image/x-photo-cd; imgview -nofork %s; compose=imgworks %s; \
  68.     description="Photo CD image"; \
  69.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  70.  
  71. x-music/x-midi;  soundplayer -nofork -nounique %s; \
  72.     description="Standard MIDI Music"; \
  73.     x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  74.  
  75. audio/x-aiff; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  76.     description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  77. audio/x-aifc; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  78.     description="AIFC Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  79. audio/x-next; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  80.     description="NeXT Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  81. audio/x-wav; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  82.     description="WAVE Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  83. audio/x-mpeg; soundplayer -nofork -nounique %s; \
  84.         description="MPEG Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  85. #
  86. # use this preferentially to do streaming audio if you have
  87. # the playulaw program
  88. #audio/basic; playulaw; stream-buffer-size=2000
  89. #
  90. # otherwise, if you don't have playulaw, use this
  91. audio/basic; soundplayer -nofork -nounique %s
  92.  
  93. # here is an interesting command that enables you to sit
  94. # in front of a different UNIX machine than the one where
  95. # you are running the Netscape Navigator and still here audio.
  96. #
  97. #audio/basic; rsh YOUR_HOST_HERE /usr/local/bin/playulaw; \
  98. #       test=test `hostname`x != YOUR_HOST_HEREx; stream-buffer-size=2000
  99.  
  100. audio/*; soundplayer -nofork -nounique %s
  101. #
  102. #
  103. # Movieplayer understands SGI, QuickTime, MPEG Video, and MPEG Systems
  104. #
  105. video/x-sgi-movie; movieplayer -v -nofork %s; compose=moviemaker %s; \
  106.     description="SGI Movie"; \
  107.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  108. video/mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
  109.     description="MPEG Movie"; \
  110.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  111. video/x-mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
  112.     description="MPEG Movie"; \
  113.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  114. video/x-mpeg-system; movieplayer -v -nofork %s; compose=moviemaker %s; \
  115.     description="MPEG Movie"; \
  116.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  117. video/quicktime; movieplayer -v -nofork %s; compose=moviemaker %s; \
  118.     description="QuickTime Movie"; \
  119.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  120. #
  121. application/x-enterlicense; /usr/etc/enterlicense %s; \
  122.     description="Software Licensing document"
  123. application/x-install; /usr/sbin/SoftwareManager -F %s; \
  124.     description="Automatic inst installation"
  125. application/x-showcase; showcase -f -v %s; \
  126.     compose=showcase %s; description="Showcase document"; \
  127.     x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
  128. application/x-framemaker; /usr/frame/bin/fmclient -f %s; \
  129.     compose=fmclient -f %s; description="FrameMaker document"; \
  130.     x11-bitmap="/usr/lib/Zmail/bitmaps/frame.xbm"
  131. application/x-wingz; Wingz %s; compose=Wingz %s; \
  132.     description="Wingz document"; \
  133.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  134. application/x-SYLK; Wingz %s; compose=Wingz %s; \
  135.     description="Spreadsheet in SYLK format"; \
  136.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  137. graphics/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  138.     description="Inventor file"; \
  139.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  140. application/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  141.     description="Inventor file"; \
  142.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  143. application/postscript; /usr/bin/X11/xpsview %s; \
  144.     description="PostScript Language";
  145. application/x-annotator; /usr/sbin/annotator -v -r %s; \
  146.     description="IRIS Annotator file"; compose=/usr/sbin/annotator %s; \
  147.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  148. application/x-tardist; tardist %s; description="SGI inst tar distribution"
  149. application/pdf; acroread %s; description="Adobe Acrobat document"
  150.  
  151.  
  152. application/x-sh;  sh %s; description="Bourne shell"
  153. application/x-csh; csh %s; description="C shell"
  154. application/x-perl;  /usr/sbin/perl %s; description="Perl script"
  155.  
  156.  
  157. x-world/x-vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
  158.     description="VRML document"
  159.  
  160. default; cat %s; copiousoutput
  161.